#ifndef __WLANIM_H__
#define __WLANIM_H__
#include"WLArchive.h"
#include "WLResource.h"
class WLAnim : public WLResource
{
	void Serialize(class WLArchive& Ar){}
	virtual int Build(){return 0;};
};
struct AnimBone
{
	std::string Name;
	int Parent;
};
struct FramData
{
	WLQuaternion RotPart;
};
WLArchive& operator << (WLArchive& Ar, AnimBone &Bone );
WLArchive& operator << (WLArchive& Ar, FramData &Frame );

class WLBoneAnim : public WLAnim
{
public:
	std::vector<AnimBone> m_BoneArray;
	std::vector<FramData> m_FrameArray;
	void Serialize(class WLArchive& Ar);
	int Build();
};

#endif